<?php

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, OPTIONS');
header('Access-Control-Max-Age: 1000');
/*
if(array_key_exists('HTTP_ACCESS_CONTROL_REQUEST_HEADERS', $_SERVER)) {
    header('Access-Control-Allow-Headers: '
           . $_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']);
} else {
    header('Access-Control-Allow-Headers: *');
}

if("OPTIONS" == $_SERVER['REQUEST_METHOD']) {
    exit(0);
}

// IE XDR doesn't pass Content-Type so we won't have the POST data under $_POST
if (count($_POST)==0) {

        if (isset($HTTP_RAW_POST_DATA)) {
                $data = explode('&', $HTTP_RAW_POST_DATA);
                foreach ($data as $val) {
                        if (!empty($val)) {
                                list($key, $value) = explode('=', $val);
                                $_POST[$key] = urldecode($value);
                        }
                }
        }
}


$myreturn["returncode"]=1;

header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
print json_encode($myreturn);
*/
echo 'hoang quoc dong';
?>